package com.liyao.storehouse.dao;

import com.liyao.storehouse.pojo.storage.*;
import org.apache.ibatis.annotations.Param;

import java.util.List;

public interface storageDao {
    List<checkList> getCheckList(@Param("page") int page, @Param("limit") int limit);

    int getCheckListCount();

    List<supplies> getGoodsList(@Param("page") int page, @Param("limit") int limit);

    int getGoodsListCount();

    List<supplies> getGoodsList1(@Param("page") int page, @Param("limit") int limit, @Param("id") String[] id);

    int getGoodsListCount1(@Param("id") String[] id);

    List<store> getStorageList(@Param("page") int page, @Param("limit") int limit);

    int getStorageListCount();

    List<container> getContainerList(@Param("page") int page, @Param("limit") int limit);

    int getContainerListCount();

    List<container> getContainerList1(@Param("page") int page, @Param("limit") int limit,@Param("id") String id);

    int getContainerListCount1(@Param("id") String id);

    List<container> getContainerAndGoodsList(@Param("page") int page, @Param("limit") int limit,@Param("goodsId") String goodsId);

    int getContainerAndGoodsListCount(@Param("goodsId") String goodsId);

    int getProductCode(@Param("productCode") String productCode);

    int insertSupplies(@Param("productCode") String productCode, @Param("productName") String productName, @Param("expectNum") String expectNum, @Param("overfillNum") String overfillNum);

    int DelSupplies(@Param("id") String id);

    int updateSupplies(@Param("id") String id, @Param("productName") String productName, @Param("expectNum") String expectNum, @Param("overfillNum") String overfillNum);


    int insertStorage(store store);

    int insertStoreDetails(@Param("suppliesId") String ids, @Param("expectedCount")String overfill1, @Param("storeId")int id1);

    int insertStoreDetails1(@Param("suppliesId") String ids, @Param("expectedCount")String overfill1, @Param("storeId")int id1, @Param("container") String[] split);

    List<storeDetails> getStoreDetailsList(@Param("id") String id);

    int getStoreDetailsListCount(@Param("id")String id);

    int activation(@Param("id") String id);

    int DelStore(@Param("id") String id);

    List<outBound> getOutboundList(@Param("page") int page, @Param("limit") int limit);

    int getOutboundListCount();

    List<outBoundDetails> getOutboundDetailsList(@Param("id") String id);

    int getOutboundDetailsListCount(@Param("id") String id);

    List<container> getContainerList2(@Param("id") String id);

    int getContainerListCount2(@Param("id") String id);

    List<checkDetails> getCheckDetailsList(@Param("id") String id);

    int getCheckDetailsListCount(@Param("id") String id);

    List<container> getContainerList3(@Param("id")String id);

    int getContainerListCount3(@Param("id")String id);


    int getoutboundRecordCount();

    List<stockDetail> getSuppliesList(@Param("id") int id);

    List<outboundRecord> getoutboundRecord(@Param("pageNum")int pageNum, @Param("pageSize")int pageSize);

    List<outboundRecord> getStockIn(@Param("pageNum")int pageNum, @Param("pageSize")int pageSize);

    List<stockDetail> getStockInSuppliesList(@Param("id") int id);

    int getStockInCount();
}
